//
//  ModelOfDiscountDataSearchResult.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/2.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfDiscountDataSearchResult.h"

@implementation ModelOfDiscountDataSearchResult
- (void)setValue:(id)value forKey:(NSString *)key{
    

    NSMutableArray *array = [NSMutableArray array];
    if ([key isEqualToString:@"count"]) {
        self.count = [value integerValue];
    }if ([key isEqualToString:@"page"]) {
        self.page = [value integerValue];
    }if ([key isEqualToString:@"orderName"]) {
        self.orderName = value;
    }if ([key isEqualToString:@"orderValue"]) {
        self.orderValue = value;
    }if ([key isEqualToString:@"kw"]) {
        self.kw = value;
    }if ([key isEqualToString:@"sequence"]) {
        self.sequence = value;
    }if ([key isEqualToString:@"lastminutes"]) {
        for (NSDictionary *dic in value) {
            ModelOfDiscountSpecificSearchResult *model = [ModelOfDiscountSpecificSearchResult modelWithDic:dic];
            [array addObject:model];
        }
        self.lastminutes  = array;
    }}
- (void)setLastminutes:(NSMutableArray *)lastminutes{
    _lastminutes = lastminutes;
}
@end
